package com.dmg.sp.service;

import com.dmg.sp.entity.Role;
import com.dmg.sp.utils.Result;
import com.dmg.sp.vo.IdVo;
import com.dmg.sp.vo.RoleAuthVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface RoleService {

    public List<Role>getRoleList();
    public void addRole(Role role);
    public void editRole(Role role);
    public void deleteRole(Integer id);
    public Role getRoleById(Integer id);
    public List<Role> getUserRole(Integer userId);
    public void setRoleAuth(RoleAuthVo vo);

}
